<template>
	<view>
		<h3>main组件{{title}}</h3>
		<button @click="fn">子传父</button>
	</view>
</template>

<script>
	export default {
		name:"Main",
		props:['title'],
		data() {
			return {
				mess:"哈哈哈"
			};
		},
		methods:{
			fn(){
				this.$emit('wufn',this.mess)
			}
		}
	}
</script>

<style>

</style>